package com.suray.basic.wcs.utils;

import java.util.Objects;

/**
 * @author weiy
 * @title: Floor
 * @projectName web_dev
 * @description: TODO
 * @date 2020/9/817:43
 */
public class Floor {
    private Integer z;

    public Floor(Integer z) {
        this.z = z;
    }

    public Floor(Floor z) {
        this.z = z.getZ();
    }
    public Integer getZ() {
        return z;
    }

    public void setZ(int z) {
        this.z = z;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null) {
            return false;
        }
        Floor floor = (Floor)o;
        return z.equals(floor.getZ());
    }

    @Override
    public int hashCode() {
        return Objects.hash(z);
    }

    @Override
    public String toString() {
        return  Integer.toString(z);

    }
}
